/**
 * 用气详情
 */

import axios from '@/libs/api.request'

/**
 * desc: 请求K线图数据
 * param {type}
 * return: void
 */
export const getCandlestickData = (params) => {
  return axios.request({
    url: '/api/localDataMonth/getMeterDetailByMouth',
    method: 'get',
    params
  })
}

/**
 * desc: 请求一天24小时折线图数据（一天抄表读数）
 * param {type}
 * return: void
 */
export const getElineByDay = (params) => {
  return axios.request({
    url: '/api/localDataMonth/getMeterDetailByDay',
    method: 'get',
    params
  })
}

/**
 * desc: 请求每个小时折线图数据（一小时抄表读数）
 * param {type}
 * return: void
 */
export const getElineByHours = (params) => {
  return axios.request({
    url: '/api/localDataMonth/getMeterCollectDetailByHours',
    method: 'get',
    params
  })
}

export const fetchHistoryUseGas = (params) => {
  return axios.request({
    url: '/api/tableGas/getMeterGasByDays',
    method: 'get',
    params
  })
}
